import axios from "@/http/index";

// 获取榜单列表数据
export function Rankings(categoryId: number) {
  return axios({
    url: "/item/saleRank.json?csrf_token=416d3914be99193677f98cce3960e2ee&__timestamp=1677668362108&subCategoryId=0",
    method: "GET",
    params: {
      categoryId,
    },
  });
}

// 榜单数据
export function RankingsArr(categoryId: number) {
  return axios({
    url: "/xhr/item/saleRankItems.json?csrf_token=416d3914be99193677f98cce3960e2ee",
    method: "POST",
    data: {
      userBusId: "",
      subCategoryId: 0,
      categoryId,
    },
  });
}
